<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  User: zoud
  Date: 2017/11/6
  Time: 19:11
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Database Commons - Curation List</title>
</head>
<body>
<div class="ui header">
    <h3>Curation List - ${user.lastName} ${user.firstName}</h3>
</div>
<table class="ui small celled table">
    <thead>
    <tr>
        <th>Database ID</th>
        <th>Database name</th>
        <th>Curation Date</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${curationList}" var="curation">
        <tr>
            <td>${curation.biodb.dbId}</td>
            <td>${curation.biodb.shortName}</td>
            <td><fmt:formatDate value="${curation.curationDate}" pattern="yyyy-MM-dd"/></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<script>
    $(document).ready(function(){
        $('table.table').dataTable();
    })
</script>
</body>
</html>
